home *** CD-ROM | disk | FTP | other *** search
- function SetScreenWatch(sw)
- {
- ScreenWatch = int(sw);
- }
- function HandleEnter()
- {
- if(ScreenWatch == 2)
- {
- _root.ButtonHit(_root.Return);
- }
- if(ScreenWatch == 1)
- {
- _root.ButtonHit(_root.Login);
- }
- if(ScreenWatch == 0)
- {
- _root.ButtonHit(_root.Next);
- }
- if(ScreenWatch == 4)
- {
- _root.ButtonHit(_root.Enter);
- }
- if(ScreenWatch == 3)
- {
- _root.Confirm(ConfVal);
- }
- }
- function HandleEsc()
- {
- if(ScreenWatch == 2)
- {
- _root.ButtonHit(_root.Return);
- }
- }
- function HandleTab()
- {
- HasSel = Selection.getFocus();
- _root.DummyText = HasSel;
- if(int(_root.Version) < 6)
- {
- if(ScreenWatch == 1)
- {
- if(HasSel == "_level0.CB_UseLogin")
- {
- Selection.setFocus("_level0.PassMov.Password");
- }
- else
- {
- Selection.setFocus("_level0.UserName");
- }
- }
- else if(ScreenWatch == 4)
- {
- if(HasSel == "_level0.EmailWrapper.Email")
- {
- Selection.setFocus("_level0.EmailWrapper.Email");
- }
- else
- {
- Selection.setFocus("_level0.UserName");
- }
- }
- else
- {
- Selection.setFocus("_level0.DummyText");
- }
- }
- else if(ScreenWatch == 1)
- {
- if(HasSel == "_level0.PassMov.Password")
- {
- Selection.setFocus("_level0.UserName");
- }
- else
- {
- Selection.setFocus("_level0.PassMov.Password");
- }
- }
- else if(ScreenWatch == 4)
- {
- if(HasSel == "_level0.EmailWrapper.Email")
- {
- Selection.setFocus("_level0.UserName");
- }
- else
- {
- Selection.setFocus("_level0.EmailWrapper.Email");
- }
- }
- else
- {
- Selection.setFocus("_level0.DummyText");
- }
- }
- function HandleUp()
- {
- HasSel = Selection.getFocus();
- if(ScreenWatch == 0)
- {
- if(_root.mode == 1)
- {
- _root.ModeButtonHit(_root.RB_REAL);
- }
- }
- if(ScreenWatch == 1)
- {
- }
- if(ScreenWatch == 2)
- {
- }
- }
- function HandleDown()
- {
- HasSel = Selection.getFocus();
- if(ScreenWatch == 0)
- {
- if(_root.mode == 0)
- {
- _root.ModeButtonHit(_root.RB_PRAC);
- }
- }
- if(ScreenWatch == 1)
- {
- }
- if(ScreenWatch == 2)
- {
- }
- }
-